/***************************************************************
*  Copyright (c) 2007 by GroupMe! Team (www.groupme.net)
*  All rights reserved.
*
*  This file is part of the GroupMe! Project. Source code of 
*  this project is closed and redistribution of this code is
*  prohibited. 
*  
*  Contact: http://www.groupme.net
*
*  This copyright notice MUST APPEAR in all copies of the file!
***************************************************************/
package net.groupme.controller.model;

/**
 * created on Jun 22, 2007
 * 
 * User model for registration and profile editing forms.
 * 
 * @author Fabian Abel, <a href="mailto:abel@l3s.de">abel@l3s.de</a>
 * @author last edited by: $Author: fabian $
 * 
 * @version $Revision: 1.4 $ $Date: 2008-04-11 16:04:33 $
 */
public class UserForm {

	//form properties:
	private String username = null;
	private String password = null;
	private String passwordb = null;
	private String firstName = null;
	private String lastName = null;
	private String email = null;
	private String foafDocumentURL = null;
	private String photo = null;
	

	
	
	/**
	 * Creates a new UserForm instance with the given fields.
	 * @param username the username
	 * @param password the user's password
	 * @param firstName first name
	 * @param lastName last name
	 * @param email email address
	 * @param foafDocumentURL URL of user's FOAF document
	 */
	public UserForm(String username, String password, String firstName, String lastName, String email, String foafDocumentURL, String photo) {
		super();
		this.username = username;
		this.password = password;
		this.passwordb = password;
		this.firstName = firstName;
		this.lastName = lastName;
		this.email = email;
		this.foafDocumentURL = foafDocumentURL;
		this.photo = photo;
	}

	/**
	 * Creates a new UserForm instance with empty values. 
	 */
	public UserForm() {
		super();
		username = "";
		password = "";
		passwordb = "";
		firstName = "";
		lastName = "";
		email = "";
		foafDocumentURL = "";
		photo = "";
	}
	
	/**
	 * This method returns the email of a UserForm object.
	 * @return the email
	 */
	public String getEmail() {
		return email;
	}
	/**
	 * This method sets the email of a UserForm object.
	 * @param email the email to set
	 */
	public void setEmail(String email) {
		this.email = email;
	}
	/**
	 * This method returns the firstName of a UserForm object.
	 * @return the firstName
	 */
	public String getFirstName() {
		return firstName;
	}
	/**
	 * This method sets the firstName of a UserForm object.
	 * @param firstName the firstName to set
	 */
	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}
	/**
	 * This method returns the foafDocumentURL of a UserForm object.
	 * @return the foafDocumentURL
	 */
	public String getFoafDocumentURL() {
		return foafDocumentURL;
	}
	/**
	 * This method sets the foafDocumentURL of a UserForm object.
	 * @param foafDocumentURL the foafDocumentURL to set
	 */
	public void setFoafDocumentURL(String foafDocumentURL) {
		this.foafDocumentURL = foafDocumentURL;
	}
	/**
	 * This method returns the lastName of a UserForm object.
	 * @return the lastName
	 */
	public String getLastName() {
		return lastName;
	}
	/**
	 * This method sets the lastName of a UserForm object.
	 * @param lastName the lastName to set
	 */
	public void setLastName(String lastName) {
		this.lastName = lastName;
	}
	/**
	 * This method returns the password of a UserForm object.
	 * @return the password
	 */
	public String getPassword() {
		return password;
	}
	/**
	 * This method sets the password of a UserForm object.
	 * @param password the password to set
	 */
	public void setPassword(String password) {
		this.password = password;
	}
	/**
	 * This method returns the passwordb of a UserForm object.
	 * @return the passwordb
	 */
	public String getPasswordb() {
		return passwordb;
	}
	/**
	 * This method sets the passwordb of a UserForm object.
	 * @param passwordb the passwordb to set
	 */
	public void setPasswordb(String passwordb) {
		this.passwordb = passwordb;
	}
	/**
	 * This method returns the username of a UserForm object.
	 * @return the username
	 */
	public String getUsername() {
		return username;
	}
	/**
	 * This method sets the username of a UserForm object.
	 * @param username the username to set
	 */
	public void setUsername(String username) {
		this.username = username;
	}
	
	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "username: " + username + " - password: " + password + " - mail: " + email + " - firstname: " + firstName + " - lastname: " + lastName + " - foaf: " + foafDocumentURL;
	}

	/**
	 * This method returns the photo of a UserForm object.
	 * @return the photo
	 */
	public String getPhoto() {
		return photo;
	}

	/**
	 * This method sets the photo of a UserForm object.
	 * @param photo the photo to set
	 */
	public void setPhoto(String photo) {
		this.photo = photo;
	}
	
}
